#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>

int* getConcatenation(int* nums, int numsSize, int* returnSize)
{
    int* arr = (int*)malloc(sizeof(int) * (numsSize * 2));
    for (int i = 0; i < numsSize; i++)
    {
        arr[i] = arr[numsSize + i] = nums[i];
    }
    *returnSize = numsSize * 2;
    return arr;
}